/**     
 * @Title: UserAdministration.java   
 * @Package me.springboot.administration   
 * @Description: TODO
 * @author weiwei 
 * @date 2017年9月1日 上午10:30:55   
 * @version V1.0     
 */
package me.springboot.administration;

import me.springboot.model.User;

import org.lightadmin.api.config.AdministrationConfiguration;
import org.lightadmin.api.config.builder.EntityMetadataConfigurationUnitBuilder;
import org.lightadmin.api.config.builder.ScreenContextConfigurationUnitBuilder;
import org.lightadmin.api.config.unit.EntityMetadataConfigurationUnit;
import org.lightadmin.api.config.unit.ScreenContextConfigurationUnit;

/**
 * @ClassName: UserAdministration
 * @Description: TODO
 * @author weiwei
 * @date 2017年9月1日 上午10:30:55
 * 
 */
public class UserAdministration extends AdministrationConfiguration<User> {

	@Override
	public EntityMetadataConfigurationUnit configuration(EntityMetadataConfigurationUnitBuilder configurationBuilder) {
		return configurationBuilder.nameField("name").singularName("User").pluralName("User").build();
	}

	@Override
	public ScreenContextConfigurationUnit screenContext(ScreenContextConfigurationUnitBuilder screenContextBuilder) {
		return screenContextBuilder.screenName("Users Administration").build();
	}
}